#!/bin/sh

MAIL_PATH=/Users/emrainey/Library/Mail/Mailboxes
JUNK_PATH=$MAIL_PATH/Junk.mbox/Messages

rm *.db
./baysian.pl setup 95
./baysian.pl prime_whitelist whitelist.txt
for i in $( ls $JUNK_PATH ); do
	./baysian.pl spam $JUNK_PATH/$i
done
./baysian.pl debug
 